package com.sc.nft.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.SecondWantBuyOrderStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 刘国航
 * @desc
 * @since 2024/12/19 20:13
 */
@Data
public class WantBuyOrderVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("账号id")
    private Long userId;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("手机号码")
    private String userTel;

    @ApiModelProperty("求购内容")
    private String relationName;

    @ApiModelProperty("求购单价")
    private BigDecimal wantBuyPrice;

    @ApiModelProperty("求购数量")
    private Integer wantBuyQuantity;

    @ApiModelProperty("总金额")
    private BigDecimal wantBuyAmount;

    @ApiModelProperty("剩余金额")
    private BigDecimal usableWantBuyAmount;

    @ApiModelProperty("已成交个数")
    private Integer completeCount;

    @ApiModelProperty("状态")
    private SecondWantBuyOrderStatusEnum status;

    @ApiModelProperty("状态名称")
    private String statusName;

    @ApiModelProperty("开始时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
